﻿
namespace SvCore.CmdLine;

public class CmdInfo
{
    public string Cmd = ""; 
    public string[] Args = Array.Empty<string>();
}
[AttributeUsage(AttributeTargets.Method)]
public class CoreCmdAttribute : Attribute
{
    public string Cmd { get; set; }
    public string Desc { get; set; }
    public CoreCmdAttribute(string cmd, string desc) { Cmd = cmd; Desc = desc; }
}
public class CoreCmdAction
{
    public CoreCmdAttribute Att { get; set; }
    public Action<CmdInfo> Act { get; set; }
}